﻿using System.Collections.Generic;
using System.Linq;
using ORISE.Data;
using ORISE.Services.Interfaces;

namespace ORISE.Services
{
    public class GroupService : IGroupService
    {
        #region Fields

        private IOriseDomainContainer context;
        
        #endregion

        #region Ctor

        public GroupService(IOriseDomainContainer context)
        {
            this.context = context;
        }

        #endregion

        #region IGroupService Members

        public IEnumerable<Group> GetAllGroups()
        {
            return context.GroupSet.ToList();
        }

        #endregion
    }
}
